<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--使用标签库--%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台管理-用户列表</title>
    <link type="text/css" rel="stylesheet" href="../../resource/css/function-manage.css" />
</head>
<style>
    td{
        color: white;
    }
</style>
<body style="background:url(../../resource/images/beijing04.jpg) ;-webkit-background-size: cover;background-size:cover;">
<div id="header" class="wrap">
    <div id="logo"><img src="../../resource/images/logo.png" /></div>
    <div class="help"><a href="login.jsp">返回前台页面</a></div>

</div>
<div id="position" class="wrap">
    您现在的位置：<a href="login.jsp">三峡大学小书屋</a> &gt; 管理后台
</div>

<div id="main" class="wrap">
    <div id="menu-mng" class="lefter">
        <div class="box">
            <dl>
                <dt>用户管理</dt>
                <dd>
                    <a href="forulist.do">用户列表</a>
                    <a href="foruadd.do">添加用户</a>
                </dd>
                <dt>商品信息</dt>

                <dd><a href="forplist.do">图书列表</a></dd>
                <dd><a href="forpadd.do">添加图书</a></dd>
            </dl>
        </div>
    </div>
    <div class="main">
        <h2 style="border-bottom-color: whitesmoke;">用户列表</h2>
        <div class="manage">
            <table class="list">
                <thead>
                <tr>
                    <th style="background: whitesmoke;color: black;">ID</th>
                    <th style="background: whitesmoke;color: black;">姓名</th>
                    <th style="background: whitesmoke;color: black;">用户名</th>
                    <th style="background: whitesmoke;color: black;">邮箱</th>
                    <th style="background: whitesmoke;color: black;">电话</th>
                    <th style="background: whitesmoke;color: black;">操作</th>

                </tr>
                <c:forEach items="${userList}" var="user">
                    <tr>
                        <td class="first w4 c">${user.uid}</td>
                        <td class="w1 c">${user.name}</td>
                        <td>${user.username}</td>
                        <td class="w1 c">${user.email}</td>
                        <td class="w1 c">${user.phone}</td>
                        <td class="w1 c"><a style="color:white;" href="udelete.do?uid=${user.uid}">删除</a></td>
                    </tr>
                </c:forEach>
                </thead>
            </table>
        </div>
    </div>
    <div class="clear"></div>
</div>
<%--<div id="footer" style="background-color: rgba(176,196,222,0.7);">
    Copyright &copy; 2020 三峡大学
</div>--%>
<script>
    function Delete(id)
    {
        if(confirm("确定要删除吗？")) {
            location.href = "user-delete.html?id=" + id;
        }
    }
</script>

<script type="text/javascript" src="../../resource/js/function-manage.js"></script>
</body>
</html>
